package com.bdzl.admin.service.data.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bdzl.admin.dao.data.BankcardDao;
import com.bdzl.pub.entity.data.BankcardDO;
import com.bdzl.admin.service.data.BankcardService;



@Service
public class BankcardServiceImpl implements BankcardService {
	@Autowired
	private BankcardDao bankcardDao;
	
	@Override
	public BankcardDO get(Integer bcId){
		return bankcardDao.get(bcId);
	}
	
	@Override
	public List<BankcardDO> list(Map<String, Object> map){
		return bankcardDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return bankcardDao.count(map);
	}
	
	@Override
	public int save(BankcardDO bankcard){
		int a = bankcardDao.save(bankcard);
		int b = bankcard.getBcId();
		return b;
	}
	
	@Override
	public int update(BankcardDO bankcard){
		return bankcardDao.update(bankcard);
	}
	
	@Override
	public int remove(Integer bcId){
		return bankcardDao.remove(bcId);
	}
	
	@Override
	public int batchRemove(Integer[] bcIds){
		return bankcardDao.batchRemove(bcIds);
	}
	
}
